# Makefile for the firewall kernel module

# The object file name will be the same as the source file name, but with a .o extension
obj-m += myfirewall.o

# Specify the path to the Linux kernel source/headers
# This command gets the directory of the currently running kernel
KDIR := /lib/modules/$(shell uname -r)/build

# Default target
all:
	# Run the make command in the kernel source directory
	$(MAKE) -C $(KDIR) M=$(PWD) modules

# Target for cleaning up the directory
clean:
	# Clean up the compiled files
	$(MAKE) -C $(KDIR) M=$(PWD) clean